import Http from '../../http';

export const getList = function (queryModel: any) {
    return Http.get('/DocPost/index', queryModel)
}
export const getEdit = function (id: number, cid: number) {
    return Http.get('/DocPost/AddOrEdit', { id: id, cid: cid })
}
export const postAdd = function (from: any) {
    return Http.post('/DocPost/Create', from)
}
export const putEdit = function (from: any) {
    return Http.put('/DocPost/Edit', from)
}
export const delOne = function (id: number) {
    return Http.delete('/DocPost/Delete', { id: id })
}

//文件标记
export const getDocPostMark = function (id: number) {
    return Http.get('/DocPostMark/GetDocPostMark', { id: id})
}
export const postInsertOrUpdate = function(from:any) {
    return Http.post('/DocPostMark/InsertOrUpdate',from) 
}
export const delOneMark = function (id: number) {
    return Http.delete('/DocPostMark/Delete', { id: id })
}